package com.wokeMy.view.adpter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.zhongcai.online.R;

import java.util.List;

/**
 * Created by Administrator on 2017/11/28 0028.
 */

public class OpenbusinessAdapter extends BaseAdapter {
    List<String> data;
    private LayoutInflater inflater;

    public OpenbusinessAdapter(Context context,List<String> Data) {
        inflater=LayoutInflater.from(context);
        this.data=Data;
    }

    @Override
    public int getCount() {
        return data.size();
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return position;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        convertView=inflater.inflate(R.layout.item_openbusiness_lv,null);
        TextView content_item_openbus_tv=(TextView) convertView.findViewById(R.id.content_item_openbus_tv);
        content_item_openbus_tv.setText(data.get(position));
        return convertView;
    }
}
